package com.hqyj.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table
public class CartItem {//购物车单个产品
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private Integer productId;//产品ID

    private Integer number;//产品数量

    private Integer total;//总价

    private Product products;//购物车产品信息
}
